package com.sofwin.config;/**
 * @PackageName:com.sofwin.config
 * @author:andyLiu
 * @DateTime:2020/12/30 9:36
 * @Description:[TODO]输入当前模块作用
 **/

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.view.InternalResourceViewResolver;

/**
 * @ClassName: Configuration
 * @Description: TODO
 * @Author: andyliu
 * @Date: 2020/12/30 9:36
 * @Version: 1.0
 **/
@org.springframework.context.annotation.Configuration
@ComponentScan("com.sofwin")
@EnableWebMvc
public class Configuration {

    @Bean
    public InternalResourceViewResolver getInternalResource(){
        InternalResourceViewResolver viewResolver = new InternalResourceViewResolver();
        viewResolver.setPrefix("/WEB-INF/");
        viewResolver.setSuffix(".jsp");
        return viewResolver;
    }

    
}
